<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			Date.prototype.chinaDate=function(){
				return this.getFullYear()+"年"+(this.getMonth()+1)+"月"+this.getDate()+"日"+this.getHours()+"时"+this.getMinutes()+"分";	
			}
			var d=new Date();
			alert(d.chinaDate());
			String.prototype.byteLength=function(){
				var s=this;
				var t=0;
				for(var i=0;i<s.length;i++){
					t+= s.charCodeAt(i)>255?2:1;
				}
				return t;
			}
			var str="你好js";
			alert(str.byteLength());
			 
		</script>
	</head>
	<body>
	</body>
</html>
